﻿using System;
using System.Collections.Generic;
using System.Text;

namespace TestDBSourceToolsLibNUnit.Stubs
{
    class NewDatabaseProjectFormStub : DBSourceToolsLib.Interfaces.IDatabaseInfo
    {
        private DBConnectionLib.Database m_Database;
        public NewDatabaseProjectFormStub()
        {
            m_Database = new DBConnectionLib.Database("TestNick", "TestDataSource", "TestDatabaseName",
                "TestDirectory");
        }
        #region IDatabaseInfo Members

        public DBConnectionLib.Database GetDatabaseObject()
        {
            return m_Database;
        }

        public DBConnectionLib.Database GetDBSourceToolsTestDB()
        {
            return new DBConnectionLib.Database("AdventureWorksLT", ".", "AdventureWorksLT", "testdir");
        }

        public DBConnectionLib.Database GetDeployDBSourceToolsTestDB()
        {
            return new DBConnectionLib.Database("DeployDBSourceToolsTestDB", ".", "DeployDBSourceToolsTestDB", "testdir");
        }

        #endregion
    }
}
